package ThreadDemo;

/**
 * @Author Zhang Chao
 * @Date 2021/5/27 16:54
 * @Version 1.0
 */

/**
 *
 */
public class Goods {

    // 【属性】

    // 商品名
    private String goodName;
    // 价格
    private double goodPrice;

    // 【行为】

    public Goods(String goodName, double goodPrice) {
        this.goodName = goodName;
        this.goodPrice = goodPrice;
    }
    public String getGoodName() {
        return goodName;
    }

    public void setGoodName(String goodName) {
        this.goodName = goodName;
    }

    public double getGoodPrice() {
        return goodPrice;
    }

    public void setGoodPrice(double goodPrice) {
        this.goodPrice = goodPrice;
    }



}
